<?php
class Zend_View_Helper_UrlPath {
    public function urlPath($path)
    {
    	$pathTokens = explode(DIRECTORY_SEPARATOR,$path);
		$pathTokens = array_map('urlencode',$pathTokens);
        return implode('/',$pathTokens);
    }
}
?>